package com.lyf.language.learn.atsgg.io.stream;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.junit.Test;

import java.io.File;
import java.io.IOException;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/3
 * @VERSION 1.0
 * @DESC
 * apache的下commons-io(第三包，简化--，方便开发）
 */
public class CommonIoDemo {
    @Test
    public void testSample(){
        //FileUtils fileUtils = new FileUtils();
        // 文件工具类
        File scrFile = new File("");
        File destFile = new File("");
        try {
            FileUtils.copyFile(scrFile,destFile);
        } catch (IOException e) {
            e.printStackTrace();
        }
        //IOUtils.

       // FileUtils.

    }
}
